//
//  PicCell.swift
//  weiboSwift1.0
//
//  Created by xuNick on 16/4/22.
//  Copyright © 2016年 NN. All rights reserved.
//

import UIKit

class PicCell: UICollectionViewCell {
    var image:UIImageView?{
        didSet{
            contentView.subviews.first?.removeFromSuperview()
            
            contentView.addSubview(image!)
            
            image?.snp_makeConstraints(closure: { (make) -> Void in
                make.edges.equalTo(contentView)
            })
            
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
//         contentView.addSubview(imageVIew!)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
//    lazy var imageVIew:UIImageView? = UIImageView()
}
